package com.yk.framework.gui.wf.ui.form;

import javax.swing.JLabel;
import javax.swing.JPanel;

import com.yk.framework.entity.ICoreBaseInfo;
import com.yk.framework.gui.ctrl.YKDialog;

/**
 * @author lifetime
 * 
 */
public abstract class AbstractTemplateForm extends JPanel {
	protected ICoreBaseInfo editData;
	protected YKDialog ownerFrame;
	protected JLabel lbl;
	protected boolean isCancel;

	public AbstractTemplateForm(YKDialog ownerFrame, JLabel fromLbl) {
		super();
		this.ownerFrame = ownerFrame;
		this.lbl = fromLbl;
	}

	public void loadFields() {
	}

	public void storeFields() {
	}

	public ICoreBaseInfo getEditData() {
		return editData;
	}

	public void setEditData(ICoreBaseInfo editData) {
		this.editData = editData;
	}

	public YKDialog getOwnerFrame() {
		return ownerFrame;
	}

	public void setOwnerFrame(YKDialog ownerFrame) {
		this.ownerFrame = ownerFrame;
	}

	public JLabel getLbl() {
		return lbl;
	}

	public void setLbl(JLabel lbl) {
		this.lbl = lbl;
	}

	public boolean isCancel() {
		return isCancel;
	}

	public void setCancel(boolean isCancel) {
		this.isCancel = isCancel;
	}

}
